#ifndef __FREATABLE_H__
#define __FREATABLE_H__
//#include "WS51F0030.h"
#include "main.h"
//#define INCREMENT_CHANNEL     

#define FREQ_TABLE_LENGTH     5
#define FREQ_TABLE_NUM        2			

#define BASE_FREQA            641500UL
#define GAP_FREQA             300UL

#define BASE_FREQB            655200UL
#define GAP_FREQB             300UL

#ifdef INCREMENT_CHANNEL


#define FreqTable_GetFreq( Group, Channel )    ( Group == 0? (BASE_FREQA + GAP_FREQA*Channel):(BASE_FREQB + GAP_FREQB*Channel) )
//#define FreqTable_GetFreq( Group, Channel )    ( Group == 0? (BASE_FREQA):(BASE_FREQB) )
#else
extern const uint32_t FreqTable[FREQ_TABLE_NUM][FREQ_TABLE_LENGTH];

#define FreqTable_GetFreq( Group, Channel )  FreqTable[Group][Channel]
#endif

#endif    //#ifndef __FREATABLE_H__
